<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户输入信息</title>
</head>

<body>
    <script>
        let time = parseInt(prompt("请输入您输入时间信息："));

        if (time < 6) {
            alert("这是休息时间，不要说话！");
        } else if (time < 13) {
            alert("上午好！")
        } else if (time < 19) {
            alert("下午好！")
        } else if (time < 24) {
            alert("晚上好！")
        }
    </script>
</body>

</html>